﻿namespace taurus.client
{
    /// <summary>
    /// 
    /// </summary>
    public class TDataWrapper
    {
        private object data;
        private TDataType typeId;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="tp"></param>
        /// <param name="data"></param>
        public TDataWrapper(TDataType tp, object data)
        {
            typeId = tp;
            this.data = data;
        }

        ///// <summary>
        ///// 
        ///// </summary>
        ///// <param name="type"></param>
        ///// <param name="data"></param>
        //public TDataWrapper(int type, object data)
        //{
        //    this.typeId = type;
        //    this.data = data;
        //}

        public TDataType getTypeId()
        {
            return typeId;
        }

        public object getObject()
        {
            return data;
        }

        public override string ToString()
        {
            return data.ToString();
        }
    }
}

